/**
 *  Copyright (c) 1997-2013, www.tinygroup.org (luo_guo@icloud.com).
 *
 *  Licensed under the GPL, Version 3.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.gnu.org/licenses/gpl.html
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.tinygroup.dbf;

import java.io.IOException;

/**
 * Dbf数据集，用来存储DBF数据内容
 * Created by luoguo on 2014/7/10.
 */
public interface DbfDataSet {
    /**
     * 移动到开始位置之前，在这里可以执行next，以访问首行数据
     * @throws IOException
     */
    void moveBeforeFirst() throws IOException;

    /**
     * 下一行数据
     *
     * @return
     */
    boolean next();

    /**
     * 绝对定位到某一行
     *
     * @param position
     * @throws IOException
     */
    boolean absolute(int position) throws IOException;

    /**
     * 返回当前记录
     *
     * @return
     */
    DbfRecord getDbfRecord() throws IOException;
    
    /**
     * 返回记录集总数
     * 
     * @return int
     * 
     * 
     * */
  
    int getDbfRecordCount();


}
